<template>
	<view class="content">
		<view>
			<image class="logo" :src="baseInfo.thumb" mode="aspectFit"></image>
		</view>

		<view class="model-content">
			<view class="model-left">
				<view class="line"></view>
				<text class="model-title">基本信息</text>
			</view>
			<image class="model-content-share" src="../../../../static/share.png"></image>
		</view>
		<view v-for="(item,index) in list" :key="index">
			<image class="regai-image" :src="item.img_url" mode="aspectFill"></image>
			<view class="content_list">
				<text>— {{item.tag_name}} —</text>
			</view>
		</view>
		<button type="primary">确定预约</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				page: '',
				limit: '',
				list: [],
				baseInfo: []
			}
		},
		onLoad(e) {
			console.log(e.id);
			uni.request({
				url: 'https://baiyi.kent.work/api/v1/system/getConstructionDetail',
				method: 'POST',
				data: {
					id: e.id,
					page: 1,
					limit: 10
				},
				success: res => {
					console.log(res.data.data.list.list);
					this.list = res.data.data.list.list;
					this.baseInfo = res.data.data.baseInfo;
				}
			});
		}
	}
</script>

<style>
	button {
		width: 328rpx;
		height: 80rpx;
		line-height: 80rpx;
		text-align: center;
		background: #3d9c36;
		border-radius: 8rpx;
		margin-top: 80rpx;
		margin-bottom: 40rpx;

	}

	.content_list text {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 14rpx;
		font-size: 24rpx;
	}

	.content_list {
		width: 670rpx;
		height: 74rpx;
		background: #ffffff;
		border-radius: 0rpx 0rpx 12rpx 12rpx;
	}

	.regai-image {
		width: 100%;
		height: 406rpx;
		vertical-align: top;
		border-radius: 16rpx 16rpx 16rpx 16rpx;

	}

	.regai-image_one {
		width: 100%;
		height: 406rpx;
		margin-top: 20rpx;
		vertical-align: top;
	}

	.content {
		box-sizing: border-box;
		width: 100vw;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.logo {
		width: 750rpx;
		height: 450rpx;
		margin-top: 12rpx;
	}

	.model-content {
		box-sizing: border-box;
		width: 100%;
		display: flex;
		align-items: center;
		padding: 40rpx 40rpx 26rpx 40rpx;
		justify-content: space-between;
	}

	.model-left {
		display: flex;
		align-items: center;
	}

	.model-title {
		font-family: PingFang SC, PingFang SC-Bold;
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		margin-left: 20rpx;
	}

	.model-content-share {
		width: 38rpx;
		height: 38rpx;
	}

	.line {
		width: 8rpx;
		height: 30rpx;
		background: #3d9c36;
	}
</style>